<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

  <div class="post" id="post-<?php the_ID(); ?>">
		<h2 class="post_title"><?php the_title(); ?></h2>
		
        <div class="comments_det">
        	<span class="date"><?php the_date(); ?> by <?php the_author(); ?></span>
        	<span class="comments_num"><?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></span>
    </div>

		<div class="p_content">
		<?php the_content(__(' read more... ')); ?>
		<?php wp_link_pages(); ?>
        </div>
             
		<div class="clear"></div>
		<div class="post_space">&nbsp;</div>
        
        <div class="post_info">
            <div class="post_cat">Posted in: <?php the_category(", ") ?></div>
            <?php the_tags('<div class="post_tags">Tags: ', ", ", "</div>") ?>
        </div>
        
	<div class="clear"></div>
		
</div><!-- end post --> 
	
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>